.class Lcom/example/m6wmr/StartActivity$4;
.super Ljava/lang/Object;
.source "StartActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/StartActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/StartActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/StartActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/StartActivity$4;->this$0:Lcom/example/m6wmr/StartActivity;

    .line 324
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4
    .param p1, "dialog"    # Landroid/content/DialogInterface;
    .param p2, "whichButton"    # I

    .prologue
    .line 327
    iget-object v2, p0, Lcom/example/m6wmr/StartActivity$4;->this$0:Lcom/example/m6wmr/StartActivity;

    invoke-virtual {v2}, Lcom/example/m6wmr/StartActivity;->getApplication()Landroid/app/Application;

    move-result-object v2

    check-cast v2, Lmyapp/MyApp;

    .line 328
    invoke-virtual {v2}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    .line 329
    .local v1, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_1

    .line 330
    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-nez v3, :cond_2

    .line 337
    :cond_1
    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/System;->exit(I)V

    .line 338
    return-void

    .line 330
    :cond_2
    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/Activity;

    .line 331
    .local v0, "activity":Landroid/app/Activity;
    if-eqz v0, :cond_0

    .line 332
    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    goto :goto_0
.end method
